package com.veo.dao.Impl;

import com.veo.bean.User;
import com.veo.dao.UserDao;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("userDao")
public class UserDaoImpl implements UserDao {
    public int delUser(int id) {
        System.out.println("userDao---delUserById ......"+id);
        return 1;
    }

    public int updateUserById(User user) {
        System.out.println("userDao---updateUserById......"+user);
        return 1;
    }

    public int addUser(User user) {
        System.out.println("userDao---addUserByUser ......" + user);
        return 1;
    }

    public User findUserById(int id) {
        System.out.println("userDao---findUserById ......"+id);
        return null;
    }

    public List<User> findAllUsers() {
        System.out.println("userDao---findAllUsers ......");
        return null;
    }

    public User findUserByNameAndPwd(String username, String pwd) {
        System.out.println("userDao---findUserByNameAndPwd ......"+username+pwd);
        return null;
    }
}
